import request from '@/utils/request'

// 查询菜单列表
export function listCustomer(query) {
  return request({
    url: '/system/saas/platform/tenant/list',
    method: 'get',
    params: query
  })
}

// 查询菜单详细
export function getCustomer(customerId) {
  return request({
    url: '/system/saas/platform/tenant/' + customerId,
    method: 'get'
  })
}


// 新增菜单
export function addCustomer(data) {
  console.log(data)
  return request({
    url: '/system/saas/platform/tenant/add',
    method: 'post',
    data: data
  })
}

// 修改菜单
export function updateCustomer(data) {
  return request({
    url: '/system/saas/platform/tenant/edit',
    method: 'put',
    data: data
  })
}

// 删除菜单
export function delCustomer(customerId) {
  return request({
    url: '/system/saas/platform/tenant/' + customerId,
    method: 'delete'
  })
}
